#include<stdio.h>
#include<stdlib.h>
struct S
{
    char name[20];
    int age;
    double score;
};

int main()
{
    struct S s={0};
    FILE *pf = fopen("test.txt","rb");
    fread(&s,sizeof(struct S),1,pf);
    printf("%s %d %.2lf",s.name,s.age,s.score);
    return 0;
}